/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.gt.entity.GtPolicyPeople;
import com.thinkgem.jeesite.modules.gt.dao.GtPolicyPeopleDao;

/**
 * 林业政策扶贫人信息Service
 * @author zad
 * @version 2018-03-26
 */
@Service
@Transactional(readOnly = true)
public class GtPolicyPeopleService extends CrudService<GtPolicyPeopleDao, GtPolicyPeople> {

	public GtPolicyPeople get(String id) {
		return super.get(id);
	}
	
	public List<GtPolicyPeople> findList(GtPolicyPeople gtPolicyPeople) {
		return super.findList(gtPolicyPeople);
	}
	
	public Page<GtPolicyPeople> findPage(Page<GtPolicyPeople> page, GtPolicyPeople gtPolicyPeople) {
		return super.findPage(page, gtPolicyPeople);
	}
	
	@Transactional(readOnly = false)
	public void save(GtPolicyPeople gtPolicyPeople) {
		super.save(gtPolicyPeople);
	}
	
	@Transactional(readOnly = false)
	public void delete(GtPolicyPeople gtPolicyPeople) {
		super.delete(gtPolicyPeople);
	}
	@Transactional(readOnly = false)
	public void deleteByPolicyId(String policyId)
	{
		super.dao.deleteByPolicyId(policyId);
	}
	
	// 批量插入林业政策扶贫人信息
	@Transactional(readOnly = false)
	public int insertList(List<GtPolicyPeople> policyPeopleList)
	{
		return super.dao.insertList(policyPeopleList);
	}
}